package com.zbf.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/30  16:07
 * 描述:
 */
@Document(collection = "test-user")
@Data
public class MyUser {

    @Id
    @Field("_id")
    private String _id;

    @Field("id")
    private Long id;

    @Field("userName")
    private String userName;

    @Field("password")
    private String password;

    @Field("address")
    private String address;

    @Field("sex")
    private String sex;

    @Field("createDate")
    private Date createDate;


}
